/*
 * $Id: LogMessage.java 98 2013-01-11 10:09:46Z vladimirow@mail.ru $
 * $HeadURL: http://ultralog.googlecode.com/svn/ultralog/tags/release-20130123/src/java/com/google/code/ultralog/LogMessage.java $
 *
 * This file is a part of ultralog project (http://code.google.com/p/ultralog/).
 * Released under New BSD License.
 */
package com.google.code.ultralog;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks method of logger interface that logs a message.
 *
 * @see Logger
 *
 * @author Mikhail Vladimirov
 */
@Target (ElementType.METHOD)
@Retention (RetentionPolicy.RUNTIME)
public @interface LogMessage {
    /**
     * Logging level of the message.
     */
    public int level ();

    /**
     * Template of the message to be logged.
     */
    public String template ();
}
